import request from "@/utils/request";
//分页查询
export const queryAllApi = (name,status,page,pageSize) => request.get(`/serve/project/list?name=${name}&status=${status}&page=${page}&pageSize=${pageSize}`)

export const queryById = (id) => request.get(`/serve/project/${id}`)

export const addProject = (data) => request.post('/serve/project',data)

export const updateProject = (data) => request.put(`/serve/project`,data)

export const deleteProject = (ids) => request.delete('/serve/project',{params:{ids:ids.join(',')}})